package com.ble.testpost.http;


import com.ble.testpost.BaseBean;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * Created by lch on 2018/2/10 0010.
 * 邮箱:245850413@qq.com
 */

public interface AppApi {


    /**
     * 上传图片
     *
     * @param file 图片
     * @return Observable
     */
    @Multipart
    @POST("/Oil/app/resource")
    Observable<BaseBean<String>> uploadImage(@Part MultipartBody.Part file);


}
